<?php
declare (strict_types = 1);

namespace app\admin\controller;

use app\admin\controller\Common;
use think\Request;
use app\admin\model\AuthRule as MainModel;
use think\facade\View;

class AuthRule extends Common
{
	public function __construct(){
		parent::__construct();
		$this->model = new MainModel;
		View::assign('model',$this->model);
		View::assign('title',"权限规则");
		$this->validate = new \app\admin\validate\AuthRule;

		/**
		 * 表结构
		 */
		$this->tables = config('tables.auth_rule');
		View::assign('tables',$this->tables);
	}
	
	/**
	 * 排序
	 */
	protected function order(){
		return "class asc,id asc";
	}
}
